﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="notify_view_reply.aspx.cs" Inherits="Ccit.OA.Notify.notify_view_reply" %>
<%@ Register TagPrefix="ccit" Namespace="Ccit.ServerControls" Assembly="Ccit.ServerControls.ActionForm" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Register TagPrefix="ccit" TagName="attach" Src="../UserControls/AttachUpLoad.ascx" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
     <title>通知管理-通知发布</title>
    <script language="javascript" type="text/javascript" src="../script/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../script/StringClass_Ext.js"></script>
    <script language="javascript" type="text/javascript" src="../script/jsonlib.js"></script>
    <script language="javascript" src="../script/jwindow.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jcontrol.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jbase64.js" type="text/javascript"></script>
    <script type="text/javascript">
       function PrintPage()
	    {
		    document.getElementById("TablePrint").style.visibility = "hidden";
		    document.getElementById("tdReply").style.display = "none";
		    window.print();
		    document.getElementById("TablePrint").style.visibility = "visible"
		    if(document.getElementById("_hidReceipt").value=="1")
		    {
		        document.getElementById("tdReply").style.display = "block";
		    }
	    }	    
	    /*  Close Window  */
	    function doClose()
	    {
	        parent.window.opener.location.reload();
	        window.close();
	    }
	    function doSave()
	    {
	        var MsView ={};
	        MsView.NotiFyId = document.getElementById("_hidNotiFyId").value;
	        MsView.Userid = document.getElementById("_hidsUserId").value;
	        MsView.Content = document.getElementById("txtContent").value;
	        MsView.state = document.getElementById("_hidState").value;
	        var jsonExpr = JSON.stringify(MsView,function(key,value){return value;}); 
                      MsQuery = null;
                    PageMethods.DoSaveMes(jsonExpr,ClientCallBack); 
	    }
	    function ClientCallBack(vResult)
	    {
	        if(vResult!="-999")
	        {
	            alert("操作成功!");
	            parent.window.opener.location.reload();
	            return true;
	        }
	        else{
	            alert("服务器繁忙,请稍后继续操作!");
	            return true;
	        }
	    }
	//-->
	</script>
	<script language="vbscript" type="text/vbscript">
	<!--
		function printsetup()	
		' 打印页面设置
			call document.getElementById("wb").execwb(8,1)
		end function
	//-->
	</script>
	<OBJECT id="wb" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" name="wb" VIEWASTEXT></OBJECT>
</head>
<body>
    <ccit:ActionForm id="formreply" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
    </asp:ScriptManager>
     <input type="hidden" id="_hidNotiFyId" runat="server" />
    <input type="hidden" id="_hidsUserId" runat="server" />
    <input type="hidden" id="_hidReceipt" runat="server" />
    <input type="hidden" id="_hidState" runat="server" /> 
     <table class="tbToolbar" cellpadding="0" cellspacing="0" width="98%" align="center" id="TablePrint">
                <tr>
                    <td align="left">
                        <div class="tbSeparator"></div>
                    </td>
                    <td width="100%" class="titlebar">  
                        <nobr>
                            标题:关于<asp:Label ID="lblTitle" runat="server">&nbsp;</asp:Label>通知
                        </nobr>
                    </td>                
                    <td align="right">
                        <nobr> 
                            <a  id="A1" Runat="server" class="linktext"  
                            href="javascript:printsetup()">
						        <img src="../images/toolbar/Printersetup.gif" border="0">设置
					        </a>  
					        <a  id="lndDelete" Runat="server" class="linktext"  
                            href="javascript:PrintPage()">
						        <img src="../images/toolbar/Printer.gif" border="0">打印
					        </a>  
					         <a  id="A2" Runat="server" class="linktext"  
                            href="javascript:doClose();">
						        <img src="../images/toolbar/close.gif" border="0">关闭
					        </a>  
                         </nobr>
                    </td> 
                </tr>
      </table>
       <table cellpadding="0" class="tableborder" cellspacing="0" width="98%" align="center" id="tdMessage" runat="server">
            <tr>
			  <td  width="15%" align="right" class="pformleft"><nobr>重要程度:</nobr>			  </td>
			    <td  align="left" class="pformrightline" >
				    <asp:Label ID="lblImport" runat="server">&nbsp;</asp:Label>
				</td>
				<td   align="right" class="pformleft"><nobr>通知类型:</nobr>			  </td>
			    <td  align="left" class="pformrightline" >
				    <asp:Label ID="lblType" runat="server">&nbsp;</asp:Label>
				</td>
				<td  width="15%" align="right" class="pformleft"><nobr>发布人:</nobr>			  </td>
			    <td  align="left" class="pformrightline" >
				    <asp:Label ID="lblPerson" runat="server">&nbsp;</asp:Label>
				</td>
				<td   align="right" class="pformleft"><nobr>发布时间:</nobr>			  </td>
			    <td  align="left" class="pformright" >
				    <asp:Label ID="lblTime" runat="server">&nbsp;</asp:Label>
				</td>
			</tr> 
			<tr>
			    <td  width="15%"  align="right" class="pformleft"><nobr>通知内容:</nobr>			  </td>
			    <td  align="left" class="pformright" colspan="8">
			         <asp:Label ID="freTextInfo" runat="server">&nbsp;</asp:Label>
				</td> 
			</tr> 
			<tr>
			    <td  width="15%"  align="right" class="pformleft"><nobr>附件</nobr>			  </td>
			    <td  align="left" class="pformright" colspan="8">
			         <ccit:attach id="ucAttach" ShowStyle="1" runat="server"></ccit:attach>  
				</td> 
			</tr>
			<tr id="trReplay" runat="server" style="display:none">
                <td  width="15%" align="right" class="pformleft"><nobr>回复要求 </nobr>			  </td>
                <td  align="left" class="pformright" colspan="8">
	                <asp:Label ID="Label1" runat="server">是否参加会议?</asp:Label>
	            </td>
            </tr>
            <tr id="trReplayContent" runat="server" style="display:none">
                <td  width="15%" align="right" class="pformleft"><nobr>回复内容:</nobr>			  </td>
                <td  align="left" class="pformright" colspan="8">
                     <asp:TextBox ID="txtContent" TextMode="MultiLine" Width="98%" Height="90px" 
                        runat="server" CssClass="inputtext"></asp:TextBox>  
                </td>
            </tr>
		      <tr class="pformstrip" id="trButtonOk" runat="server" style="display:none">
                           <td colspan="9" align="center">
                                <input type="button" id="btnSave" value="确定" class="button" onclick="doSave()" />
		                    </td>
		                </tr>
	</table> 
    </ccit:ActionForm>
    
</body>
</html>
